package com.ktjy.springsecuitydemo;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true) // 开启方法权限控制
public class SpringsecuitydemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringsecuitydemoApplication.class, args);
    }
}
